package com.dbs.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dbs.po.User;
import com.dbs.service.UserService;

@RestController
public class UserController {
	@Autowired
	private UserService userService;
	
	@RequestMapping("/findUserById")
	public User findUserById() {
		return userService.findUserById();
	}
	
	@RequestMapping("/findUserById2")
	public User findUserById2() {
		return userService.findUserById2();
	}
	
	@RequestMapping("/updateUserById")
	public boolean updateUserById() {
		return userService.updateUserById();
	}
	
}
